<?php
require_once ROOT_LIBRARY_UTILITY.DS. 'BaseModel.php';

class Model_Partner extends BaseModel{

    public function  __construct() {
        parent::__construct();
        $this->_key = 'id';
        $this->_tableName = 'partners';
    }

    public function getDataForPagination($where)
    {
        try
        {
            return $this->_db->select()
                    ->from('partners')
                    ->order('id DESC')
                    ->where($where);
        }
        catch(Zend_Db_Exception $ex)
        {
            throw new Exception($ex);
        }
    }
}
?>
